//
//  SuperViewController.h
//  kuihuajingyingwang
//
//  Created by smm on 16/8/24.
//  Copyright © 2016年 com.huishangbao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIViewController+MBProgressHUD.h"

#import "PublicHeadView.h"
#import "ABNavigationBar.h"


typedef void(^refreshBlock)(UIRefreshControl *);

@interface SuperViewController : UIViewController

@property (assign, nonatomic)int CurrentPage;/**< 当前页码*/
@property (assign, nonatomic)BOOL hasmore;
@property (assign, nonatomic) CGFloat SCREENW;
@property (assign, nonatomic) CGFloat SCREENH;
@property (strong, nonatomic) PublicHeadView * public_headView;
//@property (nonatomic, strong) ABNavigationBar *public_headView;
- (UIBarButtonItem *)backButton;/**< 自定义返回按钮*/
//-(UIBarButtonItem *)rightItemButton;/**< 自定义右边按钮*/
+ (UIViewController *)getCurrentVC;
-(void)addRefreshToTableView:(NSObject *)tableview;/**< 添加下拉刷新*/
-(void)refreshAction:(refreshBlock)refreshblock;/**< 下拉刷新方法*/
-(void)endRefresh;/**< 结束刷新*/
-(void)backButtonPressed;
- (UIButton*)leftButton;
- (UILabel*)titleLabel;
-(void)rightButtonPressed;

@end
